<?xml version="1.0" encoding="UTF-8" standalone="no"?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
  <head>
    <meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
    <title>fmvoice</title>
    <link rel="stylesheet" type="text/css" href="csound.css" />
    <meta name="generator" content="DocBook XSL Stylesheets V1.78.1" />
    <link rel="home" href="index.html" title="The Canonical Csound Reference Manual" />
    <link rel="up" href="OpcodesTop.html" title="Orchestra Opcodes and Operators" />
    <link rel="prev" href="fmrhode.html" title="fmrhode" />
    <link rel="next" href="fmwurlie.html" title="fmwurlie" />
  </head>
  <body>
    <div class="navheader">
      <table width="100%" summary="Navigation header">
        <tr>
          <th colspan="3" align="center">fmvoice</th>
        </tr>
        <tr>
          <td width="20%" align="left"><a accesskey="p" href="fmrhode.html">Prev</a> </td>
          <th width="60%" align="center">Orchestra Opcodes and Operators</th>
          <td width="20%" align="right"> <a accesskey="n" href="fmwurlie.html">Next</a></td>
        </tr>
      </table>
      <hr />
    </div>
    <div class="refentry">
      <a id="fmvoice"></a>
      <div class="titlepage"></div>
      <a id="IndexFmvoice" class="indexterm"></a>
      <div class="refnamediv">
        <h2>
          <span class="refentrytitle">fmvoice</span>
        </h2>
        <p>fmvoice — 
      FM Singing Voice Synthesis
          </p>
      </div>
      <div class="refsect1">
        <a id="idp109879360"></a>
        <h2>Description</h2>
        <p>
      FM Singing Voice Synthesis
    </p>
      </div>
      <div class="refsect1">
        <a id="idp109880672"></a>
        <h2>Syntax</h2>
        <pre class="synopsis">ares <span class="command"><strong>fmvoice</strong></span> kamp, kfreq, kvowel, ktilt, kvibamt, kvibrate[, ifn1, \
      ifn2, ifn3, ifn4, ivibfn]</pre>
      </div>
      <div class="refsect1">
        <a id="idp109883072"></a>
        <h2>Initialization</h2>
        <p>
      <span class="emphasis"><em>ifn1, ifn2, ifn3,ifn3, ivibfn</em></span> -- Tables,
      usually of sinewaves.  The last is for vibrato
    </p>
      </div>
      <div class="refsect1">
        <a id="idp109884864"></a>
        <h2>Performance</h2>
        <p>
      <span class="emphasis"><em>kamp</em></span> -- Amplitude of note.
    </p>
        <p>
      <span class="emphasis"><em>kfreq</em></span> -- Frequency of note played.
    </p>
        <p>
      <span class="emphasis"><em>kvowel</em></span> -- the vowel being sung, in the range 0-64
    </p>
        <p>
      <span class="emphasis"><em>ktilt</em></span> -- the spectral tilt of the sound in the range 0 to 99
    </p>
        <p>
      <span class="emphasis"><em>kvibamt</em></span> -- Depth of vibrato
    </p>
        <p>
      <span class="emphasis"><em>kvibrate</em></span> -- Rate of vibrato
    </p>
      </div>
      <div class="refsect1">
        <a id="idp109891184"></a>
        <h2>Examples</h2>
        <p>
      Here is an example of the fmvoice opcode. It uses the file <a class="ulink" href="examples/fmvoice.csd" target="_top"><em class="citetitle">fmvoice.csd</em></a>.

      </p>
        <div class="example">
          <a id="idp109892960"></a>
          <p class="title">
            <strong>Example 304. Example of the fmvoice opcode.</strong>
          </p>
          <div class="example-contents">
            <p>See the sections <a class="link" href="UsingRealTime.html" title="Real-Time Audio"><em class="citetitle">Real-time Audio</em></a> and <a class="link" href="CommandFlags.html" title="Csound command line"><em class="citetitle">Command Line Flags</em></a> for more information on using command line flags.</p>
            <pre class="programlisting">
<span class="csdtag">&lt;CsoundSynthesizer&gt;</span>
<span class="csdtag">&lt;CsOptions&gt;</span>
<span class="comment">; Select audio/midi flags here according to platform</span>
-odac     <span class="comment">;;;realtime audio out</span>
<span class="comment">;-iadc    ;;;uncomment -iadc if realtime audio input is needed too</span>
<span class="comment">; For Non-realtime ouput leave only the line below:</span>
<span class="comment">; -o fmvoice.wav -W ;;; for file output any platform</span>
<span class="csdtag">&lt;/CsOptions&gt;</span>
<span class="csdtag">&lt;CsInstruments&gt;</span>

<span class="ohdr">sr</span> <span class="op">=</span> 44100
<span class="ohdr">ksmps</span> <span class="op">=</span> 32  
<span class="ohdr">nchnls</span> <span class="op">=</span> 2
<span class="ohdr">0dbfs</span>  <span class="op">=</span> 1

<span class="oblock">instr</span> 1

kfreq <span class="op">=</span> 110
kvowel <span class="op">=</span> p4	<span class="comment">; p4 = vowel (0 - 64)</span>
ktilt  <span class="op">=</span> p5
kvibamt <span class="op">=</span> 0.005
kvibrate <span class="op">=</span> 6

asig <span class="opc">fmvoice</span> .5, kfreq, kvowel, ktilt, kvibamt, kvibrate
<span class="opc">outs</span> asig, asig

<span class="oblock">endin</span>
<span class="csdtag">&lt;/CsInstruments&gt;</span>
<span class="csdtag">&lt;CsScore&gt;</span>
<span class="comment">;  sine wave.</span>
<span class="stamnt">f</span> 1 0 16384 10 1

<span class="stamnt">i</span> 1 0 1 1  0	<span class="comment">; tilt=0</span>
<span class="stamnt">i</span> 1 1 1 &gt;  .
<span class="stamnt">i</span> 1 2 1 &gt;  .
<span class="stamnt">i</span> 1 3 1 &gt;  .
<span class="stamnt">i</span> 1 4 1 &gt;  .
<span class="stamnt">i</span> 1 5 1 &gt;  .
<span class="stamnt">i</span> 1 6 1 &gt;  .
<span class="stamnt">i</span> 1 7 1 12 .

<span class="stamnt">i</span> 1 10 1 1  90	<span class="comment">; tilt=90</span>
<span class="stamnt">i</span> 1 11 1 &gt;  .
<span class="stamnt">i</span> 1 12 1 &gt;  .
<span class="stamnt">i</span> 1 13 1 &gt;  .
<span class="stamnt">i</span> 1 14 1 &gt;  .
<span class="stamnt">i</span> 1 15 1 &gt;  .
<span class="stamnt">i</span> 1 16 1 &gt;  .
<span class="stamnt">i</span> 1 17 1 12 .

<span class="stamnt">e</span>
<span class="csdtag">&lt;/CsScore&gt;</span>
<span class="csdtag">&lt;/CsoundSynthesizer&gt;</span>
</pre>
          </div>
        </div>
        <p><br class="example-break" />
    </p>
      </div>
      <div class="refsect1">
        <a id="idp109897280"></a>
        <h2>Credits</h2>
        <p>
      </p>
        <table border="0" summary="Simple list" class="simplelist">
          <tr>
            <td>Author: John ffitch (after Perry Cook)</td>
          </tr>
          <tr>
            <td>University of Bath, Codemist Ltd.</td>
          </tr>
          <tr>
            <td>Bath, UK</td>
          </tr>
        </table>
        <p>
    </p>
        <p>New in Csound version 3.47</p>
      </div>
    </div>
    <div class="navfooter">
      <hr />
      <table width="100%" summary="Navigation footer">
        <tr>
          <td width="40%" align="left"><a accesskey="p" href="fmrhode.html">Prev</a> </td>
          <td width="20%" align="center">
            <a accesskey="u" href="OpcodesTop.html">Up</a>
          </td>
          <td width="40%" align="right"> <a accesskey="n" href="fmwurlie.html">Next</a></td>
        </tr>
        <tr>
          <td width="40%" align="left" valign="top">fmrhode </td>
          <td width="20%" align="center">
            <a accesskey="h" href="index.html">Home</a>
          </td>
          <td width="40%" align="right" valign="top"> fmwurlie</td>
        </tr>
      </table>
    </div>
  </body>
</html>
